Prints the active document.